package com.tengju.motivation.domain.model.activity;

import com.tengju.motivation.domain.shared.IdObject;

/**
 * @author: 李大仙
 * @date: 2021/12/27 3:25 下午
 */
public class CrowdId extends IdObject {
    /**
     * Instantiates a new Id object.
     *
     * @param value the value
     */
    public CrowdId(long value) {
        super(value);
    }

    public static CrowdId of(Long value) {
        if (value == null) {
            return null;
        }
        return new CrowdId(value);
    }

    @Override
    public boolean equals(Object o) {
        return super.equals(o);
    }

    @Override
    public int hashCode() {
        return super.hashCode();
    }
}
